package com.qf.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 公用常量
 * @Data: 2022/9/8 11:55
 * @Pacakge: com.qf.config
 * @ClassName: JdbcConfig
 * @Author: fan
 */
@Configuration
public class JdbcConfig {
//    @Value("${jdbc.driverClassName}")
//    private String driverClassName;
//    @Value("${jdbc.url}")
//    private String url;
//    @Value("${jdbc.user}")
//    private String user;
//    @Value("${jdbc.password}")
//    private String password;
/*    @Bean
    public DruidDataSource druidDataSource(){
        DruidDataSource druidDataSource = new DruidDataSource();
        druidDataSource.setDriverClassName(driverClassName);
        druidDataSource.setUrl(url);
        druidDataSource.setUsername(user);
        druidDataSource.setPassword(password);
        return druidDataSource;
    }*/
}
